New server nomads.ncep.noaa.gov
This commit is contained in:
@ -22,16 +22,16 @@ custom:
|
||||
data_dir: /data/
|
||||
db_all:
|
||||
#url: jdbc:postgresql://92.46.48.43:5444/weather?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
url: jdbc:postgresql://192.168.0.90:5432/weather?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
#url: jdbc:postgresql://127.0.0.1:5432/weather?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
#url: jdbc:postgresql://192.168.0.90:5432/weather?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
url: jdbc:postgresql://127.0.0.1:5432/weather?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
login: postgres
|
||||
password: PasSecrKey1
|
||||
password: 309A86FF65A78FB428F4E38DFE35F730
|
||||
db_ru:
|
||||
#url: jdbc:postgresql://92.46.48.43:5444/weather_ru?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
url: jdbc:postgresql://192.168.0.90:5432/weather_ru?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
#url: jdbc:postgresql://127.0.0.1:5432/weather_ru?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
#url: jdbc:postgresql://192.168.0.90:5432/weather_ru?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
url: jdbc:postgresql://127.0.0.1:5432/weather_ru?ApplicationName=kz_mcp_weather&sslmode=require
|
||||
login: postgres
|
||||
password: PasSecrKey1
|
||||
password: 309A86FF65A78FB428F4E38DFE35F730
|
||||
|
||||
|
||||
springdoc:
|
||||
|
||||
@ -91,7 +91,10 @@ public class AirTemperature implements ServletContextAware {
|
||||
*/
|
||||
@RequestMapping(value = "/geodatalist/AirTemperature",method = RequestMethod.GET,produces = "text/html;charset=UTF-8")
|
||||
@ResponseBody
|
||||
public Object ajaxTamer(/*@RequestParam(required=true,name="forecast") String forecast,*/@RequestParam(required=false,name="date") String date) {
|
||||
public Object ajaxTamer(
|
||||
/*@RequestParam(required=true,name="forecast") String forecast,*/
|
||||
@RequestParam(required=false,name="date") String date
|
||||
) {
|
||||
String forecast = "000";
|
||||
|
||||
String result="";
|
||||
@ -142,8 +145,9 @@ public class AirTemperature implements ServletContextAware {
|
||||
String measurement = "TMP:2 m above ground";
|
||||
|
||||
//Build URL to download
|
||||
String URL = "https://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
|
||||
//String URL = "https://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
String URL = "https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
|
||||
File f1 = new File(data_dir+"temp"+File.separator+"air_text.idx");
|
||||
if(f1.exists()) {
|
||||
if (!f1.delete()) {
|
||||
|
||||
@ -159,7 +159,8 @@ public class Precipitation implements ServletContextAware {
|
||||
String measurement = "APCP:surface:0-1 day acc fcst";
|
||||
|
||||
//Build URL to download
|
||||
String URL = "https://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
//String URL = "https://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
String URL = "https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
|
||||
File f1 = new File(data_dir+"temp"+File.separator+"pre_text.idx");
|
||||
if(f1.exists()) {
|
||||
|
||||
@ -101,7 +101,7 @@ public class SoilTmperature implements ServletContextAware {
|
||||
}*/
|
||||
//---------------------------------------------------------------------------
|
||||
/**
|
||||
* Example: http://127.0.0.1:8081/geodatalist/DownloadSoil?forecast=000
|
||||
* Example: https://127.0.0.1:8083/geodatalist/DownloadSoil?forecast=000
|
||||
* @param response
|
||||
* @param forecast
|
||||
* @param date
|
||||
@ -165,7 +165,8 @@ public class SoilTmperature implements ServletContextAware {
|
||||
//String measurement = "TSOIL:0.1-0.4 m below ground";
|
||||
|
||||
//Build URL to download
|
||||
String URL = "https://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
//String URL = "https://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
String URL = "https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs."+date+"/"+time+"/atmos/gfs.t"+time+"z.pgrb2.0p25.f"+forecast;
|
||||
|
||||
File f1 = new File(data_dir+"temp"+File.separator+"text.idx");
|
||||
if(f1.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user