cambecc / earth

a project to visualize global weather conditions
http://earth.nullschool.net
MIT License
5.99k stars 1.17k forks source link

Reading data #101

Open AmirFarhan opened 4 years ago

AmirFarhan commented 4 years ago

In which file does the program choose to read which data to draw the layers for wind, temperature etc.?

rinku16 commented 4 years ago

@AmirFarhan Do you able to find the temperature folder for finding the temperature based on the location. I am executing this github project on window 10 localhost and it has limited functionality of wind and its speed only. Please reply.

AmirFarhan commented 4 years ago

I retrieve the data from here: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl They are in the form of grib so you can use grib2json to get the json file. Make sure that var_TMP=on so you will get the temperature data.

For example: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t00z.pgrb2.1p00.anl&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.20191101%2F00

rinku16 commented 4 years ago

@AmirFarhan what about other limited options such as grid date selection and other features as in demo (https://earth.nullschool.net/) which are absent in given github code and thus are not in my localhost system.

rinku16 commented 4 years ago

@AmirFarhan where to put this in sub folder (under earth/public/data) after downloading and converting it to JSON.

rinku16 commented 4 years ago

@AmirFarhan I also tried to run this earth project in my shared hosting (I have not purchased VPS) by trying below thing and referring the link (https://medium.com/@mayomi1/how-to-host-a-node-js-app-on-shared-host-52e12a62a259) but it not worked.

Below are the pics for SSH command interface i used.

image

image

But it not worked, I might be entering wrong way of PORT number in URL.

rinku16 commented 4 years ago

I retrieve the data from here: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl They are in the form of grib so you can use grib2json to get the json file. Make sure that var_TMP=on so you will get the temperature data.

For example: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t00z.pgrb2.1p00.anl&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.20191101%2F00

@AmirFarhan will i need to download all the given files in first link.

rinku16 commented 4 years ago

I retrieve the data from here: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl They are in the form of grib so you can use grib2json to get the json file. Make sure that var_TMP=on so you will get the temperature data.

For example: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t00z.pgrb2.1p00.anl&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.20191101%2F00

@AmirFarhan could you upload the github code in your profile which you made final after these above changes.

rinku16 commented 4 years ago

I retrieve the data from here: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl They are in the form of grib so you can use grib2json to get the json file. Make sure that var_TMP=on so you will get the temperature data.

For example: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t00z.pgrb2.1p00.anl&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.20191101%2F00

@AmirFarhan Github code of earth null school already has JSON file "current-wind-surface-level-gfs-1.0" in path "earth\public\data\weather\current".

rinku16 commented 4 years ago

I retrieve the data from here: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl They are in the form of grib so you can use grib2json to get the json file. Make sure that var_TMP=on so you will get the temperature data.

For example: https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t00z.pgrb2.1p00.anl&var_TMP=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.20191101%2F00

@AmirFarhan i tried the below link but the globe start revolving very fast and no temperature is shown. Also is the file to download is ending with .F000 or .anl, what is diff betwen them. Please reply sir.