Recent content by Atr cheema

  1. A

    Convert solar radiation from Joule per cm square to Watt per meter^2?

    I have solar radiation data in the units of Joule per cm^2 (joule per square centimeter) measured hourly. I want to use this data in evapotranspiratin calculation which requires radiation units as Watt per meter squared. How can I do this conversion?
  2. A

    Visual Python Pendulum: Solving the Forces

    In the following example, there are three time series and I want to predict another time series y which is a function of the three. How can I use four inputs to predict the time series where the fourth input is the output at previous time step? import tensorflow as tf import numpy as np...
  3. A

    Python How to get output from a layer during training in Keras?

    Can you implement this for this example code? Thanks.
  4. A

    Python How to get output from a layer during training in Keras?

    All the answers in that post provide the way to get output once the training is finished but I want the output during the training process simultaneously. This might require some modification in model.fit method in training.py file but I am unable to find a solution so far. Can you tell me which...
  5. A

    Python How to get output from a layer during training in Keras?

    In Keras, the method model.fit() is used to train the neural network. How can I get the output from any hidden layer during training? Consider following code where neural network is trained to add two time series #multivariate data preparation #multivariate multiple input cnn example from numpy...
  6. A

    Python How to get pixel value from a color map?

    I want to get mass values at those individual points on the plot.
  7. A

    Python How to get pixel value from a color map?

    I have a python code where it generates two 1D arrays, plots them using scatter plot and then draws colorbar using normalization range. How can I find individual values at those individual pixel points? HC = data["HC"] OC = data["OC"] sample = y widthmm, heightmm = 171, 233 ratio =...
  8. A

    Fortran Print correct value of Real number with gfortran?

    Thank you @FactChecker and @Hugh McCutchen . The correct answer is indeed obtained by defining B=2.42D0. I want to ask now that this code snippet is part of large code and I wanted to check value of C (RWTSED in first post), while A (VOSED in post #1) and B (RHOMN in post #1) are already...
  9. A

    Fortran Print correct value of Real number with gfortran?

    I applied your suggestions but still unable to get the result what I get from calculator.. program inpdat c IMPLICIT NONE DOUBLE PRECISION A,B,C,C1,C2 C REAL A,B,C,C1 2000 FORMAT (' ',3F40.15) 2001 FORMAT (' ',F40.10) A = 17424.0 B = 2.42...
  10. A

    Fortran Print correct value of Real number with gfortran?

    Thank you for the reply. I have understood that the problem is related to precision to which real number is represented by floating point number. I changed the variable definition from REAL to DOUBLE PRECISION, and I get the answer program inpdat IMPLICIT NONE DOUBLE...
  11. A

    Fortran Print correct value of Real number with gfortran?

    How can you get 17424*2.42*1e6 = 42166083584.00000?? It is 42166080000 indeed!
  12. A

    Fortran Print correct value of Real number with gfortran?

    The following program is printing wrong value of RWTSED. How can I print correct value?? program inpdat c IMPLICIT NONE REAL RHOMN,RWTSED,VOLSED VOLSED = 17424.0 RHOMN = 2.42 !0000076293945 RWTSED= VOLSED*RHOMN*1.0E6 2000 FORMAT(/,3F40.5)...
  13. A

    I How to find a solution to this linear ODE?

    A, K and H are constand and ##\alpha## comes from Fourier transform.
  14. A

    I How to find a solution to this linear ODE?

    I want to find solution to following ODE $$ \frac{d \bar h}{dt} + \frac{K}{S_s} \alpha^2 \bar h = -\frac{K}{S_s} \alpha H h_b(t) $$ I have solved it with integrating factor method with ## I=\exp^{\int \frac{1}{D} \alpha^2 dt} ## as integrating factor and ##\frac{K}{S_s} = \frac{1}{D} ## I have...
  15. A

    A How to simplify the solution of the following linear homogeneous ODE?

    During solution of a PDE I came across following ODE ## \frac{d \bar h}{dt} + \frac{K}{S_s} \alpha^2 \bar h = -\frac{K}{S_s} \alpha H h_b(t) ## I have to solve this ODE which I have done using integrating factor using following steps taking integrating factor I=\exp^{\int \frac{1}{D} \alpha^2...
Back
Top